package com.mars.module.app.controller;


import com.mars.common.enums.BusinessType;
import com.mars.common.response.PageInfo;
import com.mars.common.result.R;
import com.mars.common.util.ExcelUtils;
import com.mars.framework.annotation.Log;
import com.mars.framework.annotation.RateLimiter;
import com.mars.module.admin.entity.ApBanner;
import com.mars.module.admin.request.ApBannerRequest;
import com.mars.module.admin.service.IApBannerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;

/**
 * 轮播控制层
 *
 * @author mars
 * @date 2024-02-28
 */
@Slf4j
@AllArgsConstructor
@RestController
@Api(value = "轮播接口管理",tags = "轮播接口管理")
@RequestMapping("/app/apBanner" )
public class AppBannerController {

    private final IApBannerService iApBannerService;

    /**
     * 分页查询轮播列表
     */
    @ApiOperation(value = "分页查询轮播列表")
    @PostMapping("/list")
    public R<List<ApBanner>> pageList(@RequestBody ApBannerRequest apBannerRequest) {
        return R.success(iApBannerService.list(apBannerRequest));
    }


}
